# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pathlib2
pkgver=2.3.5
pkgrel=2
pkgdesc="Fork of pathlib aiming to support the full stdlib Python API"
url="https://github.com/mcmtroffaes/pathlib2"
arch="noarch"
license="MIT"
depends="python3 py3-six"
makedepends="py3-setuptools"
source="pathlib2-$pkgver.tar.gz::https://github.com/mcmtroffaes/pathlib2/archive/$pkgver.tar.gz"
builddir="$srcdir/pathlib2-$pkgver"

replaces="py-pathlib2" # Backwards compatibility
provides="py-pathlib2=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0404a86c1a374aafa3b352ab41855bd1384bfbb047116de8d44ee3e0efe331938596eb6c266216310b40b7a9db3cb9086a6c3190faa8169f89cc8772294c4ea0  pathlib2-2.3.5.tar.gz"
